$渐变: linear-gradient(160deg, rgba(100, 200, 255, 1) 0%, rgba(120, 100, 255, 1) 100%);

@keyframes eject {
    0% {
        transform: scale(0.2);
    }
    65% {
        transform: scale(1.06);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

#childwin {
    display: none;
    background-color: rgba($color: #333, $alpha: 0.6);
    flex-direction: column;
    align-items: center;
    top: 0;
    left: 0;
    z-index: 30;
    overflow: auto;
    padding: 1rem;
    .seat {
        flex: 1;
        display: block;
        width: 0;
        flex-shrink: 0;
    }
    .win {
        position: relative;
        backdrop-filter: blur(0.25rem);
        flex-shrink: 0;
        display: none;
        flex-direction: column;
        min-height: 16rem;
        border-radius: 0.5rem;
        max-width: 100%;
        box-shadow: 0 0 6px 0 rgba($color: #666, $alpha: 0.2);
        backdrop-filter: blur(0.5rem);
        .head {
            height: 2.8rem;
            text-align: center;
            line-height: 2.8rem;
            margin: 0;
            font-size: 1.125rem;
            .icon-close {
                position: absolute;
                cursor: pointer;
                top: 0.4rem;
                right: 0.4rem;
                width: 2rem;
                height: 2rem;
                font-size: 1.9rem;
                line-height: 2rem;
                text-align: center;
                &:hover {
                    color: #505050;
                }
            }
        }
        .bar {
            height: 0.2rem;
            background-image: $渐变;
        }
        .main {
            flex: 1;
        }
        .tail {
            padding: 1rem;
        }
        .confirm {
            background-color: #1fafff;
            color: #fff;
            &:hover {
                background-color: #008cff;
            }
        }
        button {
            height: 2rem;
            padding: 0 1.5rem;
            border-radius: 0.25rem;
            text-align: center;
            box-shadow: 0 0 6px 0 rgba($color: #333, $alpha: 0.2);
            background-color: #fff;
            color: #1fafff;
            &:hover {
                background-color: #e0e0e0;
            }
            &.circular {
                padding: 0;
                width: 2rem;
                border-radius: 50%;
            }
        }
        p {
            padding: 1rem;
        }
        .center {
            display: flex;
            justify-content: center;
        }
        .around {
            display: flex;
            justify-content: space-around;
        }
        &.open {
            display: flex;
            animation: eject 0.2s ease-out;
        }
    }

    [type="alter"],[type="confirm"] {
        width: 26rem;
        .main {
            text-align: center;
        }
    }
    [type="style"] {
        width: 56rem;
    }
}
// #touch {
//     #childwin.brief {
//         .open {
//             animation: fadeIn 0.2s ease-out;
//         }
//     }
// }
@media (max-width: 50rem) {
    // #childwin {
    // }
}
